package com.aichat.ai_chatbackend.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 情感分析表
 * @TableName emotion_analysis
 */
@TableName(value ="emotion_analysis")
@Data
public class EmotionAnalysis implements Serializable {
    /**
     * 情感分析ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 会话ID
     */
    private String sessionId;

    /**
     * 消息ID
     */
    private Long messageId;

    /**
     * 情感类型: happy, sad, angry, neutral, etc.
     */
    private String emotionType;

    /**
     * 情感得分 (0-1)
     */
    private BigDecimal emotionScore;

    /**
     * 分析结果JSON
     */
    private Object analysisResult;

    /**
     * 创建时间
     */
    private Date createdAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}